﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace org.osgi.framework.launch
{
    public interface Framework : Bundle
    {
        T adapt<T>(Type type);
        IEnumerator<Stream> findEntries(String path, String filePattern, Boolean recurse);
        long getBundleId();
        Stream getEntry(String path);
        IEnumerator<String> getEntryPaths(String path);
        String getLocation();
        String getSymbolicName();
        void init();
        void start();
        void start(int options);
        void stop();
        void stop(int options);
        void uninstall();
        void update();
        void update(Stream input);
        FrameworkEvent waitForStop(long timeout);
    }
}
